const mongoose= require('mongoose');
const typesSchema=new mongoose.Schema({
    type:String
});
mongoose.model('typesModel',typesSchema,'types');
module.exports.modelName='typesModel';
module.exports.getAlltypesModel=async function(){
    return await mongoose.model('typesModel').find();
}